﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class car_insurance_get_quote_facebook_show_message : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string domainUrl = "http://" + Request.Url.Host.ToString();
        string pageName = "profile.aspx";

        string redirectUrl = domainUrl;
        string imgUrl = domainUrl;
        if (Request.Url.Port != 80 && Request.Url.Port != 0)
        {
            redirectUrl += ":" + Request.Url.Port.ToString();
            imgUrl += ":" + Request.Url.Port.ToString();
        }

        redirectUrl += "/car-insurance/" + pageName;


        //Response.Write(redirectUrl);
        hplRedirectUrl.NavigateUrl = redirectUrl;
        ClientScript.RegisterClientScriptBlock(this.GetType(), "JSOpenCXSGCarQuote", "openWindow('" + redirectUrl + "');", true);
    }
}
